home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / ANYKEY.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  42 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   ANYKEY  .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20.  
  21. $INCLUDE "DAS-NB01.INC"
  22. COLOR 7, 0
  23. CLS
  24.  
  25. ? "┌────────────────────────────────────────────────────────────────
  26. ? "│ fAnyKey% ()
  27. ? "├───────────────────────────────────────────────────────────────────
  28. ? "│ This little function comes in handy when you want to pause the program
  29. ? "│ and await ANY keyboard action by the user. It first clears the keyboard
  30. ? "│ buffer then politely awaits a key press. It will return the thumped key
  31. ? "│ just in case you need it.
  32. ? "└────────────────────────────────────────────────────────────────────────
  33.  
  34. PRINT "PRESS ANY KEY TO CONTINUE"
  35.  
  36. G% = fAnyKey%
  37.  
  38. PRINT "YOU PRESSED KEY: ";
  39. PRINT USING "### ###"; ( G% MOD 256 ), ( G% \ 256 );
  40.  
  41. LOCATE 25, 1 : PRINT ">>>>>>> ALL DONE <<<<<<<";
  42.